package com.yuqih.common.websocket;

public class WebSocketResponse {
	
	public static final int ID = 0;
	public static final int OK = 1;
	public static final int ERROR = 2;

	private int type; // 0 - 系统返回id ; 1 - 正常推送 2-错误信息
	private Object content;

	/**
	 * 
	 */
	public WebSocketResponse() {
		super();
	}
	
	

	/**
	 * @param type
	 * @param content
	 */
	public WebSocketResponse(int type, Object content) {
		super();
		this.type = type;
		this.content = content;
	}



	/**
	 * @return the type
	 */
	public int getType() {
		return type;
	}

	/**
	 * @param type the type to set
	 */
	public void setType(int type) {
		this.type = type;
	}

	/**
	 * @return the content
	 */
	public Object getContent() {
		return content;
	}

	/**
	 * @param content
	 *            the content to set
	 */
	public void setContent(Object content) {
		this.content = content;
	}

}
